Here are the steps to follow when duplicating a controller.
Duplicating a simple controller involves two steps:
- Duplicate the Controller class
- Rename the new class and it's constructor
Change the class name, in our case from Totals
to TotalsNew
- Don't forget to rename the constructor.
-class Totals : Northwind.BusinessProcessBase
+class TotalsNew : Northwind.BusinessProcessBase
{
ShowOrders _parent;
- public Totals(ShowOrders parent)
+ public TotalsNew(ShowOrders parent)
{
_parent = parent;
Title = "Totals";
InitializeDataView();
}
....